package com.pp.ent.base.common;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

import com.pp.ent.base.log.MLog;


/**
 * Created by dengqu on 2016/9/30.
 */
public class SafeHandlerDispatch extends Handler {
    private final static String TAG = "SafeHandlerDispatch";

    public SafeHandlerDispatch() {
    }

    public SafeHandlerDispatch(Looper looper) {
        super(looper);
    }

    @Override
    public void handleMessage(Message msg) {
        try {
            super.handleMessage(msg);
        } catch (Exception e) {
            MLog.error(TAG, e);
        }
    }
}
